package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDateTime;

/**
 * @author: 夏帮连
 * @date: 2025/06/23
 * @description:
 * @version: 1.0
 */
@Mapper
public interface UserMapper {
    void insert(User user);
    @Select("select * from user where openid=#{openId}")
    User getByOpenId(String openId);

    Integer userCount(LocalDateTime begin, LocalDateTime end);
}
